import { toJS } from 'mobx';
import { inject, observer } from 'mobx-react';
import { WeaTools } from 'ecCom';
import * as Fctt from '../../constants/BaseFormConstant';
import BaseForm from '../BaseForm';

import { WeaLocaleProvider } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;

@inject('chanceReportTimeSectionFormStore')
@observer
class ReportTimeSectionForm extends BaseForm {
  getStore() {
    return this.props.chanceReportTimeSectionFormStore;
  }
}

export default WeaTools.tryCatch(React, props => <WeaErrorPage ecId={`${this && this.props && this.props.ecId || ''}_WeaErrorPage@lu1rkv`} msg={props.error ? props.error : getLabel(129417, '服务器运行出错，请联系系统管理员！')} />, { error: '' })(ReportTimeSectionForm);
